home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL / glxcreatecontextwithconfigsgix.z / glxcreatecontextwithconfigsgix
Encoding:
Text File  |  2002-10-03  |  10.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX((((3333GGGG))))                      OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ---- GGGGLLLLXXXX
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX - create a new GLX rendering context with
  10.      specified frame buffer configuration
  11.  
  12.  
  13. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  14.      GLXContext ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX( Display *_d_p_y,
  15.                                                  GLXFBConfigSGIX _c_o_n_f_i_g,
  16.                                                 int _r_e_n_d_e_r__t_y_p_e,
  17.                                                 GLXContext _s_h_a_r_e__l_i_s_t,
  18.                                                 Bool _d_i_r_e_c_t )
  19.  
  20.  
  21. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  22.      _d_p_y          Specifies the connection to the X server.
  23.  
  24.  
  25.      _c_o_n_f_i_g       Specifies the GLX frame buffer configuration that defines
  26.                   the frame buffer resources available to the rendering
  27.                   context.
  28.  
  29.  
  30.      _r_e_n_d_e_r__t_y_p_e  Specifies the type of rendering context desired. Must be one
  31.                   of GGGGLLLLXXXX____RRRRGGGGBBBBAAAA____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX or GGGGLLLLXXXX____CCCCOOOOLLLLOOOORRRR____IIIINNNNDDDDEEEEXXXX____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX.
  32.  
  33.  
  34.      _s_h_a_r_e__l_i_s_t   Specifies the context with which to share display lists and
  35.                   texture objects.  NNNNUUUULLLLLLLL indicates that no sharing is to take
  36.                   place.
  37.  
  38.  
  39.      _d_i_r_e_c_t       Specifies whether rendering is to be done with a direct
  40.                   connection to the graphics system if possible (TTTTrrrruuuueeee) or
  41.                   through the X server (FFFFaaaallllsssseeee).
  42.  
  43.  
  44. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.      ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX creates a GLX rendering context and
  46.      returns its handle.  If ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX fails to create a
  47.      rendering context, NNNNUUUULLLLLLLL is returned.
  48.  
  49.      If _d_i_r_e_c_t is TTTTrrrruuuueeee, then a direct rendering context is created if the
  50.      implementation supports direct rendering and the connection is to an X
  51.      server that is local.  If _d_i_r_e_c_t is FFFFaaaallllsssseeee, then a rendering context that
  52.      renders through the X server is always created.  Direct rendering
  53.      provides a performance advantage.  However, direct rendering contexts
  54.      cannot be shared outside a single process, and they cannot be used to
  55.      render to GLX pixmaps.
  56.  
  57.      If _s_h_a_r_e__l_i_s_t is not NNNNUUUULLLLLLLL, then all display-list and texture object
  58.      indexes and definitions are shared by context _s_h_a_r_e__l_i_s_t and by the newly
  59.      created context.  An arbitrary number of contexts can share a single
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX((((3333GGGG))))                      OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ---- GGGGLLLLXXXX
  71.  
  72.  
  73.  
  74.      display-list and texture object space, as long as these contexts exist in
  75.      the same address space.  Two rendering contexts share an address space if
  76.      both are nondirect using the same server, or if both are direct and owned
  77.      by a single process.  Note that in the nondirect case, it is not
  78.      necessary for the calling threads to share an address space, only for
  79.      their related rendering contexts to share an address space.
  80.  
  81.      The context created by ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX can be used to
  82.      render into windows, GLX pixmaps and/or GLX pbuffers. Before rendering,
  83.      the context must be made current to a thread and GLX drawable by calling
  84.      ggggllllXXXXMMMMaaaakkkkeeeeCCCCuuuurrrrrrrreeeennnntttt. The context can only be made current to a drawable that
  85.      is _c_o_m_p_a_t_i_b_l_e with it. This requires the following conditions to be met:
  86.  
  87.           The context's _r_e_n_d_e_r__t_y_p_e attribute (either GGGGLLLLXXXX____RRRRGGGGBBBBAAAA____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX or
  88.           GGGGLLLLXXXX____CCCCOOOOLLLLOOOORRRR____IIIINNNNDDDDEEEEXXXX____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX) is supported by the GLXFBConfigSGIX that
  89.           the drawable was created with. For example, if the context's
  90.           _r_e_n_d_e_r__t_y_p_e attribute is GGGGLLLLXXXX____RRRRGGGGBBBBAAAA____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX, then the
  91.           GGGGLLLLXXXX____RRRREEEENNNNDDDDEEEERRRR____TTTTYYYYPPPPEEEE____SSSSGGGGIIIIXXXX attribute of the drawable's GLXFBConfigSGIX
  92.           must have the GGGGLLLLXXXX____RRRRGGGGBBBBAAAA____BBBBIIIITTTT____SSSSGGGGIIIIXXXX bit set.
  93.  
  94.           All color buffers and ancillary buffers that exist in both the
  95.           drawable's and context's GLXFBConfigSGIX have the same depth. For
  96.           example, a GLXFBConfigSGIX that has a front left buffer and a back
  97.           left buffer with red, green and blue sizes of 4 is not compatible
  98.           with a GLXFBConfigSGIX that has only a front left buffer with red,
  99.           green and blue sizes of 8. However, it is compatible with a
  100.           GLXFBConfigSGIX that has only a front left buffer if the red, green
  101.           and blue sizes are 4.
  102.  
  103.  
  104. NNNNOOOOTTTTEEEESSSS
  105.      ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX is part of the GGGGLLLLXXXX____SSSSGGGGIIIIXXXX____ffffbbbbccccoooonnnnffffiiiigggg
  106.      extension.
  107.  
  108.      A _p_r_o_c_e_s_s is a single execution environment, implemented in a single
  109.      address space, consisting of one or more threads.
  110.  
  111.      A _t_h_r_e_a_d is one of a set of subprocesses that share a single address
  112.      space, but maintain separate program counters, stack spaces, and other
  113.      related global data.  A _t_h_r_e_a_d that is the only member of its subprocess
  114.      group is equivalent to a _p_r_o_c_e_s_s.
  115.  
  116.  
  117. EEEERRRRRRRROOOORRRRSSSS
  118.      NNNNUUUULLLLLLLL is returned if execution fails on the client side.
  119.  
  120.      BBBBaaaaddddMMMMaaaattttcccchhhh is generated if the context to be created would not share the
  121.      address space or the screen of the context specified by _s_h_a_r_e__l_i_s_t.
  122.  
  123.      GGGGLLLLXXXXBBBBaaaaddddFFFFBBBBCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX is generated if _c_o_n_f_i_g is not a valid GLXFBConfig.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxttttWWWWiiiitttthhhhCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX((((3333GGGG))))                      OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ---- GGGGLLLLXXXX
  137.  
  138.  
  139.  
  140.      GGGGLLLLXXXXBBBBaaaaddddCCCCoooonnnntttteeeexxxxtttt is generated if _s_h_a_r_e__l_i_s_t is not a GLX context and is not
  141.      NNNNUUUULLLLLLLL.
  142.  
  143.      BBBBaaaaddddAAAAlllllllloooocccc is generated if the server does not have enough resources to
  144.      allocate the new context.
  145.  
  146.      BBBBaaaaddddVVVVaaaalllluuuueeee if _r_e_n_d_e_r__t_y_p_e does not refer to a valid rendering type.
  147.  
  148.  
  149.  
  150. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  151.      ggggllllXXXXDDDDeeeessssttttrrrrooooyyyyCCCCoooonnnntttteeeexxxxtttt, ggggllllXXXXIIIIssssDDDDiiiirrrreeeecccctttt, ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxtttt, ggggllllXXXXMMMMaaaakkkkeeeeCCCCuuuurrrrrrrreeeennnntttt,
  152.      ggggllllXXXXGGGGeeeettttFFFFBBBBCCCCoooonnnnffffiiiiggggAAAAttttttttrrrriiiibbbbSSSSGGGGIIIIXXXX, ggggllllXXXXCCCChhhhoooooooosssseeeeFFFFBBBBCCCCoooonnnnffffiiiiggggSSSSGGGGIIIIXXXX
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.